home *** CD-ROM | disk | FTP | other *** search
- class EnemyIndex extends StgObjectIndex {
- public static final int COLOR_NOMAL = 0;
- public static final int COLOR_RED = 1;
- public static final int COLOR_BLUE = 2;
- public static final int GROUP_NOMAL = 0;
- public static final int GROUP_SHOT = 1;
- public static final int GROUP_BLOCK = 2;
- protected EnemyAction eaAction;
- private int nColor;
- private int nHitPoint;
- private int nScore;
- private int nGroup;
-
- public EnemyIndex(Position var1, SpriteAnimeData var2, Position var3, int var4, EnemyAction var5, int var6, int var7, int var8, int var9) {
- super(var1, var2, var3, var4);
- this.eaAction = var5;
- this.nColor = var6;
- this.nHitPoint = var7;
- this.nScore = var8;
- this.nGroup = var9;
- }
-
- public boolean action() {
- return this.eaAction.action(this);
- }
-
- public boolean checkHitPlayerShip(PlayerShipIndex var1) {
- return this.eaAction.checkHitPlayerShip(this, var1);
- }
-
- public boolean checkHitPlayerShot(PlayerShotIndex var1) {
- return this.eaAction.checkHitPlayerShot(this, var1);
- }
-
- public boolean checkHitBom() {
- return this.eaAction.checkHitBom(this);
- }
-
- public void setEnemyAction(EnemyAction var1) {
- this.eaAction = var1;
- }
-
- public void setColor(int var1) {
- this.nColor = var1;
- }
-
- public void setHitPoint(int var1) {
- this.nHitPoint = var1;
- }
-
- public void setScore(int var1) {
- this.nScore = var1;
- }
-
- public void setGroup(int var1) {
- this.nGroup = var1;
- }
-
- public EnemyAction setEnemyAction() {
- return this.eaAction;
- }
-
- public int getColor() {
- return this.nColor;
- }
-
- public int getHitPoint() {
- return this.nHitPoint;
- }
-
- public int getScore() {
- return this.nScore;
- }
-
- public int getGroup() {
- return this.nGroup;
- }
- }
-